<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title>IdeaLAN - Control Panel</title>
<meta http-equiv="content-Type" content="text/html; charset=iso-8859-2" />
<meta http-equiv='refresh' content='<? echo $opt_logout_time; ?>' /> 
<link rel="Stylesheet" type="text/css" href="../g/style.css" />
<link rel="Stylesheet" type="text/css" href="../g/calendar.css" />
<link rel="icon" type="image/png" href="../g/globe.png">



<style type="text/css">
<!--
.timeClass {
  font-family:arial,verdana,helvetica,sans-serif;
  font-weight:normal;
  font-size:10pt;
  font-weight:bold;
  color:red;
}

tr { background-color: #CCC}
.initial     { background-color: #CCC; }
.normal     { background-color: #CCC; }
.highlight     { background-color: #CCFF66;}

iframe {
	display:none;
}

-->
</style>

<script type="text/javascript">
<!--

function validate_form()
{
    valid = true;
    var reason = "";

					 // VALIDATE NEW SERVICE FIELDS //
    if ( document.form_newservice.cust.value == "" )
    {
        reason += "- Please choose a customer. \n";
        valid = false;
    }

    if ( ( document.form_newservice.so_type[0].checked == false ) && ( document.form_newservice.so_type[1].checked == false ) )
    {
        reason += "- Please choose the service type. \n";
        valid = false;
    }

					 // END VALIDATE NEW SERVICE FIELDS //
	
	if (reason != "") {
		alert("Please fix these problems before you continue:\n\n" + reason);	
	}
    return valid;
}

//-->
</script>
<script type="text/javascript" src="scripts/ajaxupload.js"></script>

<SCRIPT TYPE="text/javascript" SRC="../g/j/tableH.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="../g/j/calendar.js"></SCRIPT>


<script type="text/javascript" src="../g/j/ajax.js"></script>
	<script type="text/javascript" src="../g/j/ajax-dynamic-list.js">
	/************************************************************************************************************
	(C) www.dhtmlgoodies.com, April 2006
	
	This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.	
	
	Terms of use:
	You are free to use this script as long as the copyright message is kept intact. However, you may not
	redistribute, sell or repost it without our permission.
	
	Thank you!
	
	www.dhtmlgoodies.com
	Alf Magne Kalleland
	
	************************************************************************************************************/	
	</script>


<script type="text/javascript"><!--//--><![CDATA[//><!--

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("me");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

//--><!]]>
</script>

<script>
function confirmDelete(delUrl,msg) {
  if (confirm("Are you sure?" + '\n' + msg)) {
    document.location = delUrl;
  }
}


</script>

<script type="text/javascript">
<!--
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Sandeep Gangadharan :: http://www.sivamdesign.com/ */



var sec = 01;   // set the seconds
var min = <? echo $time_out_minutes; ?>;   // set the minutes

function countDown() {
  sec--;
  if (sec == -01) {
    sec = 59;
    min = min - 1;
  } else {
   min = min;
  }
if (sec<=9) { sec = "0" + sec; }
  time = (min<=9 ? "0" + min : min) + ":" + sec + "";
if (document.getElementById) { theTime.innerHTML = time; }
  SD=window.setTimeout("countDown();", 1000);
if (min == '00' && sec == '00') { sec = "00"; window.clearTimeout(SD); }
}

function focusOn() {
		// focus on the input field for easy access...
		//var input = document.getElementById ('sq');
		var input = document.forms['sq_form'].elements['sq'];
		input.focus ();
		// ...but if someone wishes to go back in their history, let them!
		document.onkeydown = function (e) {
			if (!e) {
				var e = window.event;
			}
			if (e.keyCode === 8 && !input.value) {
				history.back();
			}
		};
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent (function() { countDown(); });
addLoadEvent (function() { focusOn(); });

//-->
</script>



<script type="text/javascript" src="../g/j/ajax.js"></script>
<script type="text/javascript">
	
var ajax = new Array();

function getServices(sel)
{
	var serviceID = sel.options[sel.selectedIndex].value;
	document.getElementById('add_service').options.length = 0;	// Empty box
	if(serviceID.length>0){
		var index = ajax.length;
		ajax[index] = new sack();
		
		ajax[index].requestFile = 'getServices.php?sid='+serviceID;	// Specifying which file to get
		ajax[index].onCompletion = function(){ showServices(index) };	// Specify function that will be executed after file has been found
		ajax[index].runAJAX();		// Execute AJAX function
	}
}

function showServices(index)
{
	var obj = document.getElementById('add_service');
	eval(ajax[index].response);	// Executing the response from Ajax as Javascript code	
}


		
</script>
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400,left = 690,top = 375');");
}
// End -->
</script>
</head>
<body>

<div id="all">